include("indexedit.php") ;
list($width, $height, $type, $attr) = getimagesize("2014/$weekno/race_winner_sm.gif");
list($twidth, $theight, $ttype, $tattr) = getimagesize("2014/$weekno/race_winner_sm.gif");
?>
error_reporting(0);
include ("weekly_config.inc") ;
$lastyear=date(Y);
$ly=$lastyear - 1;
$dbname=$ly."finalresults";
?>
echo "$ly $lastyearweekrace" ; ?> Results
Pos |
St |
Car# |
Driver |
Make |
Laps |
Status |
Laps Led |
include ("../../db.php"); /*database connection and error trapping */
$query = "SELECT * FROM $dbname WHERE week=$cuweekno ORDER BY `fin` ASC ";
$result=mysql_query($query);
$fnum=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $fnum) {
$fin=mysql_result($result,$i,"fin");
$start=mysql_result($result,$i,"start");
$car=mysql_result($result,$i, "carnum");
$driver=mysql_result($result,$i, "driver");
$make=mysql_result($result,$i, "make");
$laps=mysql_result($result,$i, "laps");
$status=mysql_result($result,$i, "status");
$lapsled=mysql_result($result,$i, "lapsled");
?>
echo "$fin"; ?> |
echo "$start"; ?> |
echo "$car"; ?> |
echo "$driver"; ?> |
echo "$make"; ?> |
echo "$laps"; ?> |
echo "$status"; ?> |
echo "$lapsled"; ?> |
++$i;
}
echo "
";
?>